project(slothttpd)
cmake_minimum_required(VERSION 2.8)

file(GLOB_RECURSE generic-sources 
        src/slothttpd/*.cpp
        src/slothttpd/*.hpp
        src/slothttpd/*.c
        src/slothttpd/*.h
        src/main/*
        #src/test/*
        #src/test/formatter_test.cpp
)

include_directories(src)

if (CMAKE_BUILD_TYPE STREQUAL "Release")
        set(CMAKE_CXX_FLAGS "-std=c++0x -O2 -Wall")
else()
        set(CMAKE_CXX_FLAGS "-std=c++0x -g -Wall -DDEBUG")
endif (CMAKE_BUILD_TYPE STREQUAL "Release")

add_executable(${PROJECT_NAME} ${generic-sources})

target_link_libraries(${PROJECT_NAME} pthread boost_filesystem boost_system boost_regex)

